#第2次作业-分支与循环
from turtle import*
pu()
goto(0,300)
write("190604205会计二班郭凯兴",align='center',font=("隶书",20,"normal"))
goto(0,0)
pd()
x=eval(input("请输入一个数："))
pensize(2)
color("red")
begin_fill
if x%2==0:
   for i in range(36):
       fd(200)
       lt(170)
   color("green")
   goto(100,-100)
   circle(104)
   goto(202,0)
   goto(100,106)
   goto(0,0)
   color("yellow")
   goto(0,-100)
   goto(202,-100)
   goto(202,106)
   goto(0,106)
   goto(0,0)
else:
    fillcolor("yelllow")
    for i in range(4):
       fd(200)
       lt(90)
end_fill()
done()
